Move the following line before rewrite_scalars() in extract_sulci(): 'sulci = [int(x) for x in sulci]' to correct sulcus indices