convert to pyconfig