2 parties finalize work on electoral alliance