Python3.3+ requires byte array instead of str. Fix: missing sys import