FYI, Hacker News has code formatting if you indent by 4 spaces:
model = NaiveEnsembleModel([model1, model2, ...])
model.fit(my_series)
prediction = model.predict()