PEP8ified
Moved get_pid to separate method
Added an is_running method
Final pep8 fixes