Run pylint on script, fixed some interesting warnings