More Pythonic multiple case checks