def list_processes(session, attributes='Name,ProcessId'):
    """
    Description: return list of all proccesses on windows machine

    :param session: instance of Windows, which hold session to win machine
    :type session: winremote.Windows
    :param attributes: comma delimited name of attributes to be returned
    :type attributes: str
    :returns: list of processes info
    :rtype: list of dict
    """
    return session._wmi.query('select %s from Win32_process' % attributes)
