Syntax translation sweep of locomotion_turns.py

Removed all semicolons, fixed indentation, changed () brackets to [],
changed some MatLab function names, changed % to #, etc.