Fixed formatting to be Python3 compatible

Refs #10015