input: Write a function to create a Python dictionary with the names as keys and the ages as values from the given input list.
  
  assert create_people_dict("John (20), Jane (40), Alex (18), Peter (45)")=={'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
output: def create_people_dict(input_str):
      people_dict = {}
      for person in input_str.split(", "):
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict