fixed some syntax compatibility problems with python 2.6
fixed some syntax compatibility problems with python 2.6

losintikfos/flask-mongoengine,gerasim13/flask-mongoengine-1,gerasim13/flask-mongoengine-1,losintikfos/flask-mongoengine