CDB reimplementation for Python
