Added year period analysis to Python.