Python 2 version using requests library, created using 3to2 tool.