python test and implementation of padding spaces within parens