def get_module_files(fullname):
 global modules
 path = fullname.replace('.', '/')
 return [module for module in modules.iterkeys() if ((module.rsplit('.', 1)[0] == path) or any([(((path + '/__init__') + ext) == module) for ext in ['.py', '.pyc', '.pyo']]))]

def get_module_files ( fullname ) : global modules path = fullname . replace ( '.' , '/' ) return [ module for module in modules . iterkeys ( ) if ( ( module . rsplit ( '.' , 1 ) [ 0 ] == path ) or any ( [ ( ( ( path + '/__init__' ) + ext ) == module ) for ext in [ '.py' , '.pyc' , '.pyo' ] ] ) ) ]
given a package directory return a list of all available python modules files in the package and its subpackages :type src_directory: str .