The attached works for me when I am using “Python 2.7.5 Stackless 3.1b3 060516 (default, May 21 2013, 17:59:42) [MSC v.1500 32 bit (Intel)]”.
Also works for Python 2.7.4 running in Ubuntu 13.04.
Also works for the standard Python we are using for ic4vc which is “2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]”.
It is interesting that both Sample2 and Sample2 perform the same work with the only difference being the lack of the @staticmethod on those methods that are decorated as threaded. It seems Python could care less about whether or not a method has been said to be “static” so long as it is never used as an instance method. You might be tempted to think Sample2 should fail, as written, however it does execute the same as Sample1. On the other hand, if all one wanted to do was produce an object with static methods without the ability to instantiate the “class” one could have done so using a module rather than a class since a class can be instantiated however a method cannot, other than when imported.
Sometimes code fails when it should and does work in another context or another set of conditions. C’est la vie.
On the other hand, if you can find any glaring bugs in the attached feel free to let me know.