Create format.py

some handy format code