>>651
http://codepad.org/PRAzdgBm

dirs = os.listdir(FOLDER) は

>>> type(os.listdir('./'))
<type 'list'>

リストしか返さない罠