Sample data processing with Python