Update product.py

Compatibility issue with 8.0