On the Parity of the partition function in arithmetic progressions