Readonly perl constants can't be passed to the python code apparently,
so constants moved to the python code to make them work again