def append_list_unit(my_list, new_element):
  my_list.append(new_element)
  return my_list

def append_list_iter(my_list, insert_list):
  for i in insert_list:
    my_list.append(i)
  return my_list

def append_list(my_list, insert_list):
  my_list.append(insert_list)
  return my_list

def append_dict_unit(my_dict, key, value):
  my_dict[key] = value
  return my_dict

def append_dict_iter(my_dict, insert_dict):
  for key in insert_dict:
    my_dict[key] = insert_dict[key]
  return my_dict

def append_dict(my_dict, insert_dict):
  my_dict = dict(my_dict, insert_dict)
  return my_dict

def get_keys(my_dict):
  list = [ ]
  for key in my_dict:
    print key
    list.append(key)
  return list

def get_values(my_dict):
  list = [ ]
  for key, value in my_dict.iteritems():
    list.append(value)
  return list

def remove_dict_unit(my_dict, remove_key):
  for key in my_dict.copy():
    if key == remove_key:
      my_dict.pop(key, None)
  return my_dict

class FilterModule(object):
  def filters(self):
    return {

             'append_list': append_list,
             'append_list_unit': append_list_unit,
             'append_list_iter': append_list_iter,
             'append_dict': append_dict,
             'append_dict_unit': append_dict_unit,
             'append_dict_iter': append_dict_iter,
             'get_keys': get_keys,
             'get_values': get_values,
    	     'remove_dict_unit': remove_dict_unit
    }

