Fix SelectTask for py3