Coding Style for Python

Modules

Tests

Most of the time I just use doctest in standard library, since keeping code, test, and documentation in the same place is easier to maintain.