def is_python_source(filename):
 return (os.path.splitext(filename)[1][1:] in PY_SOURCE_EXTS)

def is_python_source ( filename ) : return ( os . path . splitext ( filename ) [ 1 ] [ 1 : ] in PY_SOURCE_EXTS )
rtype: bool return: true if the filename is a python source file .