Move taskpool in utils and python tests up. Fix autopilot_env