input: Write a function to create a Python dictionary from a given list of people where the names are keys and the ages are values.
  
  def create_people_dict(people_list):
      people_dict = {}
      for person in people_list.split(', '):
          name, age = person.strip('()').split()
          people_dict[name] = int(age)
      return people_dict
  
  assert create_people_dict("John (20), Jane (40), Alex (18), Peter (45)")=={'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
  assert create_people_dict("")=={}
  assert create_people_dict("Alice (30)")=={'Alice': 30}
  assert create_people_dict("Sam (25), Rachel (22)")=={'Sam': 25, 'Rachel': 22}
  assert create_people_dict("Tom (50), Dave (55), Amy (60)")=={'Tom': 50, 'Dave': 55, 'Amy': 60}
output: def create_people_dict(people_list):
      people_dict = {}
      if people_list:
          for person in people_list.split(', '):
              name, age = person.strip('()').split()
              people_dict[name] = int(age)
      return people_dict