Decoupling from Requests dependency for both Python2 and Python3