That masculinity is a requirement for priestly ordination has NEVER been infallibly defined as a divinely revealed DOGMA of the Catholic faith, by St John Paul II or any other pope.  Canon Law can be changed at any time that the Church chooses to do so:  

"If it was at one time necessary even for validity by the will and command of the Church, every one knows that the Church has the power to change and abrogate what she herself has established." Pius XII, Sacramentum Ordinis, 1947

When a baptized person, man or woman, is sacramentally ordained to the priesthood, that person becomes a priest.  Whether or not such baptized and ordained persons are designated as lay or clergy or any other designation is not dogmatic.  Just in case it might be of interest, the chronology of events leading to the current confusion about this issue is summarized in section 5 of this summary:

Religious Patriarchy Compromises the Mission of the Church 
http://pelicanweb.org/CCC.TOB.1703A.html