import modules.Main2 as Main2
import modules.Main as Main

class custobject(object):
    def factory(typeof):
        if typeof== 'cat1':
            return Main.main1()

        if typeof == 'cat2':
            return Main2.main2()
    factory = staticmethod(factory)

obj=custobject.factory("cat2")
obj.calc()
dd6cf2b8314ff27af5b6cb6c766417cff96ccd53
<mask token>


class custobject(object):

    def factory(typeof):
        if typeof == 'cat1':
            return Main.main1()
        if typeof == 'cat2':
            return Main2.main2()
    <mask token>


<mask token>

<mask token>


class custobject(object):

    def factory(typeof):
        if typeof == 'cat1':
            return Main.main1()
        if typeof == 'cat2':
            return Main2.main2()
    factory = staticmethod(factory)


<mask token>

<mask token>


class custobject(object):

    def factory(typeof):
        if typeof == 'cat1':
            return Main.main1()
        if typeof == 'cat2':
            return Main2.main2()
    factory = staticmethod(factory)


obj = custobject.factory('cat2')
obj.calc()

import modules.Main2 as Main2
import modules.Main as Main


class custobject(object):

    def factory(typeof):
        if typeof == 'cat1':
            return Main.main1()
        if typeof == 'cat2':
            return Main2.main2()
    factory = staticmethod(factory)


obj = custobject.factory('cat2')
obj.calc()

import modules.Main2 as Main2
import modules.Main as Main

class custobject(object):
    def factory(typeof):
        if typeof== 'cat1':
            return Main.main1()

        if typeof == 'cat2':
            return Main2.main2()
    factory = staticmethod(factory)

obj=custobject.factory("cat2")
obj.calc()