def replaceEnt(mo):
 return replacements.get(mo.group(1), mo.group())

def replaceEnt ( mo ) : return replacements . get ( mo . group ( 1 ) , mo . group ( ) )
replace the entities that are specified by openid .