formatting for python