def import_from(import_string):
    """
    Imports a function from python module import string
    """
    fn_name = import_string.split('.')[-1]
    module_name = '.'.join(import_string.split('.')[:-1])
    module = __import__(module_name, fromlist=[fn_name])
    return getattr(module, fn_name)