Suggestion: a short main() and if __name__ = ... for each file, serving as a demo/smoke test. It doesn't stop you from importing it as a module, and it's nice to see using code.
if __name__ == "__main__":
import doctest
doctest.testmod()
https://docs.python.org/3.5/library/doctest.html