almost finished python tool