Python recipe parsing and manipulation