These lines are long enough (over pep8 80 chars) and since the conditional is the same it would probably make it more readable to just put them in a normal if/else.