Add a slash where you want to stop:
from some.very.long.package.name import \
LongName as OtherLongName
Without it Python will think the line is over and throw SyntaxError
.
You can also use importlib.import_module
if you find operations on strings more convenient:
from importlib import import_module
OtherLongName = import_module('some.very.long.package.name.LongName')