def flatten_processes_response(response):
    """Helper function to extract only pids and paths from the list processes command"""
    return [{item['process_pid']: item['process_path']} for item in response]