python write to stdout without newline