enhanced and pylinted example code