Migration to Python 3.3.2, part IV: added shebang and utf-8 env. def,
subprocess.poll() -> subprocess.wait() + use timeout