Major refactor and pep-8 compliance using pylint
Created by: HighSaltLevels
What/Why
SaltBot2 was not PEP-8 compliant, so I thought it would be best to go ahead and do that. This PR touches the entire code base and has many diffs.
Additional changes
I removed the email interface and reboot logic because having to keep up with google automatically turning off insecure apps was beginning to frustrate me. SaltBot has had a much better uptime and has been up since I took it out of the docker container.
Run of black and pylint:
[pi@raspberrypi:~/SaltBot2.0]$ black saltbot2.py lib
All done! ✨ 🍰 ✨
9 files left unchanged.
[pi@raspberrypi:~/SaltBot2.0]$ pylint saltbot2.py lib
-------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 9.97/10, +0.03)