putting a variable inside a string (python),plot.savefig('hanning%(num)s.pdf' % locals())