Stellar Populations in M31 and M33