re #5 fix #5 Changing the call of os.path.mkdir to os.makedirs