xxx@ddd:~$ mkdir testa testb

>>> import shutil
>>> shutil.move("/home/xxx/testa","/home/xxx/testb")
>>> exit()

xxx@ddd:~$ ls testb
testa