Cannot os.rename() a directory

but can shutil.move.