def create_policy_bindings(member, roles):
    """ Converts member+roles args to a proper policy bindings object. """

    bindings = []

    for role in roles:
        bindings.append({'role': role, 'members': [member]})

    return bindings