Python 3 X Getting Invalid Document Error While Querying Mongodb

Python 3 X Getting Invalid Document Error While Querying Mongodb