def force_to_valid_python_variable_name(old_name):
 new_name = old_name
 new_name = new_name.lstrip().rstrip()
 if (old_name in python_keywords):
  new_name = (u'opt_' + old_name)
 return new_name

def force_to_valid_python_variable_name ( old_name ) : new_name = old_name new_name = new_name . lstrip ( ) . rstrip ( ) if ( old_name in python_keywords ) : new_name = ( u'opt_' + old_name ) return new_name
valid c++ names are not always valid in python .