[PyLint] Addded docstrings, slight refactoring. Fixed sigint_handler.
Merge branch 'SinglePythonFile' of github.com:jamietanna/wp into SinglePythonFile