Replacing import * with explicit imports from p.q.gate