made model.py a command line tool