def to_float(option,value):
if type(value) is str:<EOL><INDENT>try:<EOL><INDENT>value=float(value)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return (option,value)<EOL>
Converts string values to floats when appropriate