docs: def create_cities_csv(filename="places2k.txt", output="cities.csv"):
      """
      Takes the places2k.txt from USPS and creates a simple file of all cities.
      """
      with open(filename, 'r') as city_file:
          with open(output, 'w') as out:
              for line in city_file:
                  # Drop Puerto Rico (just looking for the 50 states)
                  if line[0:2] == "PR":
                      continue
                      # Per census.gov, characters 9-72 are the name of the city or place. Cut ,off the last part, which is city, town, etc.
                  #                    print " ".join(line[9:72].split()[:-1])
                  out.write(" ".join(line[9:72].split()[:-1]) + '\n')