Update report.py

Fix https://github.com/odoo/odoo/issues/364 - PDF generate empty file on Windows platform.