old_contents: import argparse
  import os
  from actions import server, client
  
  # the main entry point for the application
  # for simplicity, let's decide that the user decides at runtime to listen
  # and the server decides to serve
  
  # location from which files should be served
  app_directory = '/home/chris/blaster'
  
  def main():
      # get the arguments
      parser = argparse.ArgumentParser(description="Exchange files!")
      parser.add_argument('action',
                          help="To be the server, type serve; to be the client, type listen",
                          )
      args = parser.parse_args()
      app_runner(args.action)
  
  def app_runner(how):
      if how == "serve":
          if os.path.exists(app_directory) == False:
              os.mkdir(app_directory)
          server.main(app_directory)
      elif how == "listen":
          client.main()
      else:
          return u'Please specify either listen or serve'
      
  
  if __name__  == '__main__':
      main()
  
new_contents: import argparse
  import os
  from actions import server, client
  
  # the main entry point for the application
  # for simplicity, let's decide that the user decides at runtime to listen
  # and the server decides to serve
  
  # location from which files should be served
  _app_directory = '/home/chris/blaster'
  
  def main():
      # get the arguments
      parser = argparse.ArgumentParser(description="Exchange files!")
      parser.add_argument('action',
                          help="To be the server, type serve; to be the client, type listen",
                          )
      args = parser.parse_args()
      _app_runner(args.action)
  
  def _app_runner(how):
      if how == "serve":
          if os.path.exists(_app_directory) == False:
              os.mkdir(_app_directory)
          server.main(_app_directory)
      elif how == "listen":
          client.main()
      else:
          return u'Please specify either listen or serve'
      
  
  if __name__  == '__main__':
      main()
  
subject: make several functions and variables private