Amid post-election chaos, new government takes shape in Pakistan