BUG : fixes non-float args to stem

implemented some ugly arg parsing conditionals

fixes #2602

based on 1.4 so six can be used.