def f2f(value):
    """Converts a fortran-formatted double precision number (e.g.,
    2.323d2) to a python float. value should be a string.

    """
    value = value.replace('d', 'e')
    value = value.replace('D', 'e')
    return float(value)