added pylintrc and started cleaning up some code