def plus_or_dot(pieces):
 if ('+' in pieces.get('closest-tag', '')):
  return '.'
 return '+'

def plus_or_dot ( pieces ) : if ( '+' in pieces . get ( 'closest-tag' , '' ) ) : return '.' return '+'
return a + if we dont already have one .