Reworked the whole valve class, and made main.py pep8 :)