hacks to deal with lake.py encode