fixes in python and js