Updated temporary selection for `mix_selection`. Made code PEP8 compliant.