file in Python

os.listdir() returns everything inside a directory -- including both files and directories.
os.path's isfile() can be used to only list files:
```
from os import listdir
from os.path import isfile, join
files = [f for f in listdir(mypath) if isfile(join(mypath, f))]
```