'Set some defaults for our session if not explicitly defined.'

def __init__(self, timeout=30, max_retries=1, *args, **kwargs):

    super(Session, self).__init__(*args, **kwargs)
    self.timeout = timeout
    self.stream = True
    self.adapters[u'http://'].max_retries = max_retries
    self.domain_limiters = {}
    self.headers.update({u'User-Agent': (u'FlexGet/%s    (www.flexget.com)' % version)})
