made python utility a command line and a php version