This is a utiliy function which converts full class or function paths to python executable import commands, the result is a tuple where the first element is the command, the second is the module and the third is the object names:
from stalker import utils
full_path = "stalker.core.models.Asset"
command = utils.path_to_exec(full_path)
print command
# will print the result
# ("from stalker.core.models import Asset",
# "stalker.core.models.asset",
# "Asset")