change js to py