custom python compile