In python 3 it must be a bytes object.
This commit has been recreated, since there seems to have been a problem with GitHub; the PR doesn't have a branch.