input: Write a function to take a list of people with their ages in the format "Name (age)" and create a dictionary with the names as keys and the ages as values. If the input list is empty, return an empty dictionary.
  assert create_people_dict('John (20), Jane (40), Alex (18), Peter (45)')=={'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
  assert create_people_dict('')=={}
output: def create_people_dict(people_str):
      if not people_str:
          return {}
      people_list = people_str.split(', ')
      people_dict = {}
      for person in people_list:
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          people_dict[name] = age
      return people_dict