refactor fixtures Python code
template js refactor for Fixtures