python threading vs. processing