Dn

Pylinted the rest of the file and made changes to raise the Pylint score close to 10, very minor changes through out.