Common scheduling algorithms implemented in Python 2.7