The ruling party proposed the electoral reform package and Prime Minister Recep Tayyip Erdogan called early legislative elections ( July 22 ) after parliament failed to elect a president .