Fix casing and spacing bugs and rename query-handler.

Unless string concatenation is used, print arguments are automatically
space-delimited. The lower method does not modify the object it is
called on. Since the module is called ogre, forcing developers to call
ogre.ogre_get or import the module/function into their namespace is not
desirable.
#!/usr/bin/python


def get(kinds, sources, relations):
    """Get local or recent media from a public source and return a dictionary.

    kinds     -- a tuple of content mediums to get
    sources   -- a tuple of sources to get content from
    relations -- a dictionary of 2-tuples specifying
                 a location or time and a radius

    """
    for kind in kinds:
        if kind.lower() not in ["image", "sound", "text", "video"]:
            print "invalid kind", kind
            return
    for source in sources:
        if source.lower() not in ["twitter"]:
            print "invalid source", source
            return
    for relation in relations.keys():
        if relation.lower() not in ["location", "time"]:
            print "invalid relation", relation
            return
    pass  # TODO Call the appropriate handler based on parameters.
    return

#!/usr/bin/python


def ogre_get(kinds, sources, relations):
    """Get local or recent media from a public source and return a dictionary.

    kinds     -- a medium of content to get
    sources   -- a source to get content from
    relations -- a dictionary of 2-tuples specifying
                 a location or time and a radius

    """
    for kind in kinds:
        kind.lower()
        if media not in ["image", "sound", "text", "video"]:
            print "invalid kind ", kind
            return
    for source in sources:
        source.lower()
        if source not in ["twitter"]:
            print "invalid source ", source
            return
    for relation in relations.keys():
        if relation not in ["location", "time"]:
            print "invalid relation ", relation
            return
    pass  # TODO Call the appropriate handler based on parameters.
    return
