Data Conversion Function In Python Example