Extended the new code style to the Python controlled motion