Python Short Circuit If Statement