qlc del tipo var = stdout.write.funzione()

print "....", "%s" %(var) ???

me lo sono inventato...uso poco python