Switched to using whatapi directly, instead of just stealing code from it.
Wrapped opening config/state files in try-except blocks.
Removed file logging. Console printing/redirecting should be enough.
Simplified identification label.
Made config/state/lock file parameters optional by turning them into class variables.
How do I shoot Py3?
Removed stray logging code.