Assigning string with boolean expression,openmode = 'w'