def try_parse_float(value):
    """If value is a string representing a floating point number, parse the string
       and return the number. Otherwise return value itself."""
    try:
        return float(value)
    except ValueError:
        return value