I have seen code in which functions/constants are prefixed with underscores. My understanding is that this indicates that they are not to be used directly. Can I do this wit
Yes, and this is not only a convention. When you import * from this module, names starting with underscore will not be imported.
import *