EXCEPTION: ValueError: negative shift count on line 1