more python to haxe syntax porting