Create detect.py

Initial command line parsing