added features to pyclass formatting