Python code to construct spectral energy distributions for M, L and T dwarfs