Hack to make it work with bottle 0.12.