apply some extra lines to deform demo examples and a tiny bit of pep8