Fixed backdoor.py and test__backdoor.py for PY3