Python Add Class Method Dynamically Linked