half clean pycode