import requests
import json
import uuid
import os

def handle(st):
    # download images
    images = requests.post("http://gateway:8080/function/loadimages", st)

    # process images and store them in processed bucket
    req =  requests.post("http://gateway:8080/function/processimages", images)

    print "Successfully loaded images and converted them!!!"

