Formatting of ms for python 3