def create(user=None):
    """
    Create user
    """
    if not "username" in user:
        return (None, "error_model_users_create_username")

    if not "lan" in user:
        return (None, "error_model_users_create_ot_lan")

    if not user in "language":
        return (None, "error_model_users_create_ot_language")

    new_user = {
        "created": datetime.utcnow(),
        "description": "",
        "email": user.get("email"),
        "image": [],
        "location": "",
        "name": "",
        "username": user["username"],
        "password": user["password"],
        "rank": 80,
        "lan": user.get("lan", "en"),
        "language": user.get("language", "english"),
        "time_zone": "Europe/London",
        "web": "",
        "status": user.get("status", ACTIVATED)
    }

    _id = db.users.insert(new_user)
    return (_id, None)
dataset/ETHPy150Open Opentaste/bombolone/bombolone/model/users.py/create/swapped operands of `in`