>>> from motion import * >>> motion(0, True, True) 1 >>> motion(-1, True, False) -1