Some hopefully useful functionality for LR Flask apps