def create_directory(directory):
if os.path.exists(directory):<EOL><INDENT>rmtree(directory)<EOL><DEDENT>os.makedirs(directory)<EOL>return directory<EOL>
Create directory but first delete it if it exists