app = Flask(__name__)
bcrypt = Bcrypt(app)
users_doc = {'username': 'james', 'password': bcrypt.generate_password_hash
    (password)}
save password as salted hash in mongodb in users collection using python - bcrypt