Update product_related.py

Compatibility issue with 8.0