Changed motif.has_instances calls to motif.instances in the create_1storder_hmm() and create_detailed_hmm() methods as we should use the Bio.motifs rather than the deprecated Bio.Motif package.
Made code changes required for the switch from Bio.Motif to Bio.motifs.