'Print \'msg\' to stdout if the global DEBUG (taken from the
DISTUTILS_DEBUG environment variable) flag is true.'

def debug_print(self, msg):

    from distutils.debug import DEBUG
    if DEBUG:
        print msg
