A box model written in python