formalise .py file headers