[common.py] some initial cleanup (formatting mostly).