input: from typing import Dict
  
  def create_people_dictionary(people: str) -> Dict[str, int]:
      """ Takes a string of names and ages in the format 'Name (age)'
      and returns a dictionary where the names are keys and the ages are values.
      >>> create_people_dictionary("John (20), Jane (40), Alex (18), Peter (45)")
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
output:     people_dict = {}
      for person in people.split(", "):
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict