old_contents: # create the resource, action to the methods name mapper
  
  from libcloudcli.errors import *
  
  RESOURCE = ['node', 'image', 'size', 'volume', 'snapshot', 'key pair',
              ' public key from file', 'public key from string',
              'balancer', 'member', 'compute node']
  
  ACTION = ['create', 'reboot', 'destroy', 'deploy', 'sizes', 'detach',
            'get', 'import', 'list']
  
  
  def mapper(resource, action):
      ''' return the method after mapping
        we need to validate whether that methods exists or not
        if exists return the mapped method
      '''
      # generally names are joined with '_'
      if (resource in RESOURCE) and (action in ACTION):
          print "hello"
          if resource.split(' '):
              new_name = resource.replace(' ', '_')
          method_name = action + '_' + new_name
  
      if check_method(method_name):
          return method_name
  
  
  def check_method(method_name):
      ''' True if the method exits '''
      return True
  
  if __name__ == '__main__':
      print mapper('node', 'create')
  
  
  
new_contents: # create the resource, action to the methods name mapper
  
  from libcloudcli.errors import *
  
  RESOURCE = ['node', 'image', 'size', 'volume', 'snapshot', 'key pair',
              ' public key from file', 'public key from string',
              'balancer', 'member', 'compute node']
  
  ACTION = ['create', 'reboot', 'destroy', 'deploy', 'sizes', 'detach',
            'get', 'import', 'list']
  
  
  def mapper(resource, action):
      ''' return the method after mapping
        we need to validate whether that methods exists or not
        if exists return the mapped method
      '''
      # generally names are joined with '_'
      if (resource in RESOURCE) and (action in ACTION):
          if resource.split(' '):
              new_name = resource.replace(' ', '_')
          method_name = action + '_' + new_name
  
      if check_method(method_name):
          return method_name
  
  
  def check_method(method_name):
      ''' True if the method exits '''
      return True
  
  if __name__ == '__main__':
      print mapper('node', 'create')
  
  
  
subject: remove comment