pyflakes and bugfixes

remove obsolete sys import
fix unknown response variable
use weblink as imported instead of pywikibot.weblib

Change-Id: I78f5ba1829a634b0518223bf4ff7cf1d5a266556
Merge "pyflakes and bugfixes"