py: expose Subject.pattern