code: def get_coordinates(filename, fmt):
      
      if fmt == "xyz":
          get_func = get_coordinates_xyz
      elif fmt == "pdb":
          get_func = get_coordinates_pdb
      else:
          exit("Could not recognize file format: {:s}".format(fmt))
  
      return get_func(filename)
docs: Get coordinates from filename in format fmt. Supports XYZ and PDB.
      Parameters
      ----------
      filename : string
          Filename to read
      fmt : string
          Format of filename. Either xyz or pdb.
      Returns
      -------
      atoms : list
          List of atomic types
      V : array
          (N,3) where N is number of atoms