python implementation for itq