New approach to class and static method replacement that will hopefully work in Py 2.6 to 3.3.