def get_TextField(kwargs):
 kwargs['validators'].append(validators.length(max=500))
 return f.TextField(**kwargs)

def get_TextField ( kwargs ) : kwargs [ 'validators' ] . append ( validators . length ( max = 500 ) ) return f . TextField ( ** kwargs )
returns a textfield .