Fix requests library issue in Python 3