Refactored Config.py to use already existing ConfigParser
Added try-exception clause for port value