Make the script compatible with python3
Add configuration parsing without enforcing it for now