python dir like for javascript /coffeescript