<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_spectrum(filename):
 """ Attempts to load spectrum as one of the supported types. Returns: a Spectrum, or None """

    import f311

    f = load_with_classes(filename, f311.classes_sp())
    if f:
        return f.spectrum
    return None