payroll_l10n_fr: Python3 compatibility

This fixes compatibility for python3, especially with hash randomization
(PYTHONHASHSEED) turned on.

This also enables coding style test that was not running for this bt,
after fixing everything flagged by coding style test.

See merge request !1892
3 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds