I always hated history class. I thought history would never come in handy.
It contained two files:
On reading the python code we can easily know that;
Lowercase chars have been substituted by other Lowercase char.
All other are where they are suppose to be.
We even know flag has timctf in start.
So by simple reverse subsitution we get the flag as: