Disable focus_if_open feature (fix #406, #272, #378, #416)

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
also validate .py.in files (fix #417)

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
pep8/pylint on globals.py.in

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>