changed data to Python