refactored python cmdline and script code

- created new helper module with useful routines
- simplifies cmdline and script code a lot and allows both config parsing
added python byte code (*.pyc) to the gitignore list
added ability to run list of commands of the python cmdline

- either use '--load' parameter when starting cmdline or the 'loadscript FILENAME' command
- 'script' is a simple text file with a list of commands and arguments
- scripts will be run line after line
- scripts can have comments: first character on the line has to be a '#'