Посмотрите на модуль запросов
url = 'http://2captcha.com/in.php' files = {'file': open('image.png', 'rb')} data = {'key': 'key', 'method': 'post'} r = requests.post(url, files=files, data=data) if r.ok: # do something with the response data