To make the Odb commands available to your script, you first need to import the odbAccess module using the following statements:
from odbAccess import * from abaqusConstants import *
from odbMaterial import * from odbSection import *