SF Patch #638825
SF Patch #638825

Fix pychecker warnings, port arg was unused (it was always the default)
Need a global statement for _listener

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator