Try sending the entire string with formatting to print.
print ('%.2f' % 6.42340)
Works with Python 3.2
In addition, the format works by providing an index to the provided agruments
print( "hello{0:.3f}".format( 3.43234 ))
Notice the '0' in front of the format flags.