pymongo support and ajax refresh