Programming without ifs. Challenge one in python.

Sometimes I think about programming without ifs

I have found great blog about it here.

And here is my solution for first challenge implemented in python.  

Python and Singleton.

Never use singleton in python!

You can use instead of it Borg Pattern. 

http://pastebin.com/qKXxGHJp

Also you can just use module instead of class. :)

Python Design Patterns