An algorithm toolkit in python