preparing to generate methods in python code