Wrapper around os.mkdir which does not raise an error if the directory exists.

def safeMkdir(p, permissions = permissions755):
	'''Wrapper around os.mkdir which does not raise an error if the directory exists.'''
	try:
		os.mkdir(p)
	except OSError:
		pass
	os.chmod(p, permissions)