fix greater/smaller filters for pymongo

filter never worked, because value is passed as string and mongodb returns zero documents