Create TSAlib.py

From TSA repository