Fixed pyflakes and pep8 warnings
Fixed incorrect term in events in GitHub

Used "issue" when it should have been "pull request"