p-Algebras over an algebraic function field over a perfect field