HOPSFlow-Paper/python/otto_motor/utilities.py