fixed format and tight_layout errors in python 2.6