Minor fix to sequence.py

Missing type cast caused motion correction to fail on Windows