hack.py - first draft for Sphinx continuous decoding