def remove_buttons(data):
    """Remove buttons from input data

    >>> data = dict(name='Pat', age=20, save_button='Save')
    >>> zoom.utils.pp(remove_buttons(data))
    [
      {
        "save_button": "Save"
      },
      {
        "age": 20,
        "name": "Pat"
      }
    ]

    """
    buttons = {}
    names = list(data.keys())
    for name in names:
        lname = name.lower()
        if lname.endswith('_button'):
            buttons[lname] = data[name]
            del data[name]
    return buttons, data
