The command
ierr, cmpval=psspy.busdat(busnumber, 'BASE')
just stores the result in variables ierr and cmpval. Nothing is printed. As drsgao said, you have to print the result to see it.