trying to fix 'POST data should be bytes or an iterable of bytes. It cannot be str.' for 3.x python