remove python inventory