Created imt_lib.py

The core of the program