Fix for config in python3