generate-config: display line numbers in errors

Display line numbers when an exception occurs during interpretation of a .pyconf file, for easier debugging