[python] move haxe.Resource implementation into a target-specific folder