fixes python formatting when keywords used