if not os.path.exists(dirmk):
    print('Creating: {}'.format(dirmk))
try:
    os.makedirs(dirmk)
except:
    print('Failed to create {}'.format(dirmk))
else:
    print('{} already exists; skipping'.format(dirmk))
How to display messages while creating directories?