class BitsInteger:
    """BitsInteger docstring"""

def __init__(self, num):
    pass

def singleton(cls):
    return cls()

def singletonfunction(func):
    return func()
Programatically changing docstring of a class object