Base framework for python programs