def create_prof_dict(profs):
   """ Creates a dictionary of professors with key being their pid """

   professors = {}

   for p in profs:
      if (p['pid'] not in professors.keys()
          and p['last_name'] != None):
         professors[p['pid']] = p
         professors[p['pid']]['reviews'] = []
   
   return professors