_process_data splitted to reduce ciclomatic complexity. Also pylint improvements.