Attribute Error

Hi
I am working in Asterisknow and I am implementing a vru. I am using Python and I am trying to connect my program with MS SQL SERVER 2000 and I am using adodb-201… My Code is

[color=darkred]import adodb

conn=adodb.ADONewConnection ( ‘odbc_mssql’)
conn.Connect(‘localhost’,‘username’,‘pwd’,‘dbname’)[/color]
[color=green]#On above line I recieve an error
AttributeError: “NoneType” object has no attribute Connect[/color]

[color=darkred]cursor = conn.Execute(‘select * from TableName’)

while not cursor.EOF:
print cursor.fields
cursor.MoveNext()

cursor.Close()
conn.Close()[/color]

Please Help me
Regards,
Naveed Khan