By convention, a variable beginning with a single underscore as in _some_var is considered private - meaning that external entities should not expect its use to remain stable across releases or ever be in any generally sane state. Its slightly more than just convention. from somemodule import * will not add these "private" variables to the module namespace.
From PEP8, the standard style guide for python:
[T]he following special forms using leading or trailing underscores
are recognized (these can generally be combined with any case
convention):
_single_leading_underscore: weak "internal use" indicator. E.g. from M import * does not import objects whose names start with an underscore.
REPLwhere it is used as a variable where the last valid output gets stored.