Python fast integer set implementation