input: 
  def create_people_dict(people_list: str) -> dict:
      """ Create a Python dictionary with names as keys and ages as values from a string
      where each person's name and age are separated by a space and the age is enclosed in parentheses.
      >>> create_people_dict("John (20), Jane (40), Alex (18), Peter (45)")
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
  
output:     people_dict = {}
      people = people_list.split(", ")
      for person in people:
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict