Latch extension for Flask