IDEAL MOOC base code in python