Python replacement for schemapyn