* Optimized getting available and unavailable entities for a product
* PEP8 compliance