tools: bitfield_gen: use six to access range (py3) or xrange (py2)
tools: bitfield_gen: use six to access range (py3) or xrange (py2)

cmr/seL4,zhicheng/seL4,cmr/seL4,cmr/seL4,zhicheng/seL4,zhicheng/seL4