Rewrite jsbuild in python