renameTool

import maya.cmds as cmd

result = cmd.promptDialog(
	title='Rename multiple objects',
	message='Enter new name:',
	button=['OK', 'Cancel'],
	defaultButton='OK',
	cancelButton='Cancel',
	dismissString='Cancel')

if result == 'OK':
	strName = cmd.promptDialog(query=True, text=True)
else: 
	strName = "renamed_"

sel = cmd.ls(sl=1)
for c,cur in enumerate(sel):
	cmd.rename(cur,strName + '_%s' % c)
I wish to do something Great and Wonderful, but I must start by doing the little things like they were Great and Wonderful”
~ Albert Einstein