Python part of img.bi which process POST- and GET- requests.