Returns True if the value is a Dynamo-formatted value

def is_dynamo_value(value):
    """ Returns True if the value is a Dynamo-formatted value """
    if not isinstance(value, dict) or len(value) != 1:
        return False
    subkey = six.next(six.iterkeys(value))
    return subkey in TYPES_REV