Add some open and write file verifications
PEP8 compliant
Added encoding type to script file
Some pylint fixes

Global evaluation
-----------------
Your code has been rated at 8.37/10
Added python version to README
Deduplicated info from script file
Changed variable and function names

pylint did not like the old ones.