Data generator written in Python