no need for utf-8 decleration, it's default in python3
fixed ImportError while importing DEVNULL from subprocess
fixed Thread error