Added tools/printstandard.py and some regression tests.