First version of API requests in Python