added ai.py to be used by django
things are happening