table rename in python script