moved this to c2g/util.py b/c I was getting circular reference problems.