scratch.py added command line function