check_package_updates - fix inconsistent tab/space
check_package_updates - minor refactor

Few very minor readability tricks

* replacing the typical "if x not in list: list[x] = ..."  pattern with defaultdict
* replace string.split('\n') with splitlines()
Merge pull request #8 from opinkerfi/refactor-check_package_updates

Refactor check package updates