useful python tool pieces