some pylinting from pycharm
handle ctrl+c in foreground mode
fall back to os.getpid if pidfile not present, happens in foreground mode
pylinting by pycharm and a few comment/docstring-updates
remove unused imports
bump to 0.9
changes for 0.9
minor typo fix