Core processing py file