use better python style, re issue #10