Here is a collection of various Python modules and recipes I’ve written that you may find uesful.

vector3
Represents a vector class that utilizes x, y, z components.  View