simplify utils.py
Merge branch 'master' of https://github.com/smargh/metadata