- fixed bug in JSON format of keylemmas
- changed handling of Exception in Flask routes