[ci skip]
In python 3.x, the POST parameters must be bytes, not str.
This reverts commit 7d2b4aa047.
7d2b4aa047