General-purpose haiku detection in Python