ai foundations in python