First, we should try to centralize API calls to one method. Every other methods will just have to prepare arguments for this method.
Then, we will move from urllib2 and poster to Request:
- less code
- more powerful
- Python 2 and Python 3 compliant without changes