python3 and configuration file parsing