data collection and processing with python