>>860
>Fixed=x[0:5]
開始インデックスの、0は省略できるから、
Fixed=x[:5]

>print(x[0:5+correction])
endIndex = 5+correction
print(x[:endIndex])

>>861
ビット演算で、4ビット取り出せばいい