title: List only files in a directory?
body: <p>Is there a way to list the files (not directories) in a directory with Python? I know I could use <code>os.listdir</code> and a loop of <code>os.path.isfile()</code>s, but if there's something simpler (like a function <code>os.path.listfilesindir</code> or something), it would probably be better.</p>