def get_metadata(bucket, key_name):
    """
    Return a dictionary of all metadata on the given key

    bucket      The bucket (boto) object
    key_name    The name of the key
    """
    return bucket.get_key(key_name).metadata
