Stuff for algorithms implemented in python.