QDateTime printer: fix strange type conversion error with python 2
Thanks to Milian Wolff for the investigation and fix !