Refactor pln_examples with PEP-8 formatting