Calling .to_dict() on User Model for Flask 0.10 Compatibility