replaced old c-style formatting with new python style formatting