Error in $lt, $in and $not in python mongodb

You are not using the correct syntax,

Refer to https://docs.mongodb.com/manual/reference/operator/query/in/