added example program
test.py: small cosmetic fixes