convert indents to spaces
fix None comparison
fix unexpected argument in testing code
remove useless parenthesis
do not use built-in names
remove eol semicolon
remove unnecessary backslash
remove unused imports
code formatting (spaces and line breaks)
code formatting (spaces and line breaks)
make exception handling more precise + replace non-docstrings with comments (docstrings should only be used in functions signatures)