improved command line of python script, changed open params

dopple.cpp:
- changed open for write_file to comply with Ubuntu's apparently anal
interpretation of write modes

dopple_script.py:
- added help output for running
- made command line arguments more robust, added parsing and defaults
- removed crufty commented out code
- changed so it looks for right app name