Python: directory and file management

Create a directory

import os
dir = "Your/Path/"
if not os.path.exists(dir):
    os.mkdir(dir)

Move file to a directory

import shutil 
source ='./source'
destination ='./destination'
dest =shutil.move(source, destination)