'Get the int value of an option, if it exists.'

def get_int_value(self, section, option, default=0):

    try:
        return self.parser.getint(section, option)
    except NoOptionError:
        return int(default)
