Format python representation of operators using ::