import os
def listFile():
    import glob
    print os.getcwd()
    os.chdir("a")
    pyprogs = [p for p in glob.glob('*.py') if not None ]
    print pyprogs
    # if not pyprogs: return


listFile()





