Mongoose Limit Array Size Python Code Run