python experiments with generators