this code is not pep8 compliant.

also I would keep the warning as it shows that something went wrong.
Ignoring it means having something likely to break afterwards.

so I am -1 on this patch