move code from inventory_this into __init__.py