Merge pull request #472 from s0undt3ch/develop

Switch to `urllib2`. Sometimes `urllib` returns `None` when calling `getcode()`
Some default minion/master options are `None`, let's set a reasonable default.