input: from typing import Dict
  
  def create_people_dict(people_info: str) -> Dict[str, int]:
      """ Convert the input string of names and ages into a Python dictionary 
      with the names as keys and the ages as values.
      >>> create_people_dict('John (20), Jane (40), Alex (18), Peter (45)')
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
      
      people_dict = {}
      for person in people_info.split(', '):
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          people_dict[name] = age
      return people_dict
output:     people_dict = {}
      for person in people_info.split(', '):
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          people_dict[name] = age
      return people_dict