foundations in py