code: def is_address_executable(self, address):
          
          try:
              mbi = self.mquery(address)
          except WindowsError:
              e = sys.exc_info()[1]
              if e.winerror == win32.ERROR_INVALID_PARAMETER:
                  return False
              raise
          return mbi.is_executable()
docs: Determines if an address belongs to a commited and executable page.
          The page may or may not have additional permissions.
  
          @note: Returns always C{False} for kernel mode addresses.
  
          @type  address: int
          @param address: Memory address to query.
  
          @rtype:  bool
          @return:
              C{True} if the address belongs to a commited and executable page.
  
          @raise WindowsError: An exception is raised on error.