Basic python idioms