put matts stuff into py file