Created by: xhluca
This change allows the user to directly set different opt constants through environment variables rather than editing the constants.py file, which makes it easier when dynamically editing the files is not convenient (e.g. in docker).