Update itrade.py

Added the atexit functionality