initial commit of ai.py

timer class