Add support for static methods.

This commit adds support for static methods, in similiar way which Python
has support for them.

Also provides an example of a static method.