def convert_from_str(strval):
    """Returns param as int, long, float, or string, whichever is best."""
    try:
        ret = int(strval)
        return ret
    except ValueError:
        pass
    try:
        ret = float(strval)
        return ret
    except ValueError:
        if strval == 'None': return None
    return strval