title: python coercing to Unicode: need string or buffer, list found
body: <p>Hello I am new to python and programming. I am trying to make a organizing app.  I am getting this error but don't know what it means</p>
  
  <pre><code>import os, glob, shutil, sys, time
  
  #source is the location of the directory
  src = os.listdir("/Users/user/Downloads")
  dst = os.listdir("/Users/user/Documents/Media")
  for filename in os.listdir(src):
      if os.stat(filename).st_mtime &lt; now - 240 * 86400:
          if os.path.isfile(filename):
              if files.endswith(".mkv"):
                  shutil.move(source, destination)
  </code></pre>
  
  <p>this is the error. </p>
  
  <pre><code>Traceback (most recent call last):
    File "test.py", line 6, in &lt;module&gt;
      for filename in os.listdir(src):
  TypeError: coercing to Unicode: need string or buffer, list found
  </code></pre>