AZIZ was subsequently elected president in July 2009 and sworn in the following month .