Python 3 Support

1. Use urllib.parse.quote instead of urllib.quote.

2. decode response body from bytes to strings.