Demonstration of different ways to make function like things in Python