going to transition from c to python so that html can be formatted