def spinner(label=''):
 sys.stdout.write(('\r DCTB %s %s' % (label, _spinner.next())))
 sys.stdout.flush()

def spinner ( label = '' ) : sys . stdout . write ( ( '\r DCTB %s %s' % ( label , _spinner . next ( ) ) ) ) sys . stdout . flush ( )
prints label with a spinner .