motif dataset generation/finding in python