Python Check If Path Is A Folder