python sandbox bundle constructor fix