Fix extension table ordering for python3