scipy: remove superfluous conditional