fix up __init__ and reflect_json after egregious use of sed -i