Sample canvas application in Python