<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_instance(cls, python, rpm_path, **kwargs):
 """Get OS object."""

        linux = None
        if Cmd.which('apt-get'):
            linux = DebianLinux(python, rpm_path, **kwargs)
        else:
            linux = FedoraLinux(python, rpm_path, **kwargs)
        return linux