Formatted with PythonTidy-1.22
Added Sudo-check and improved pid-file handling...