Cleaning refining and purifying data using Python