Update altin.py

Defined main function