Python If Element Is Not None