Hi Edward,
I am sorry I answered this for another operating system.
For linux you need to the following for the workaround.
Compile python as a 64 bit build
When you build python recompile python as UCS2.
ref: http://dev-notes.com/code.php?q=91
Also make sure you are using the right python module which you are using just making a note for future refence.
We have 3 different versions of the python module: 2.6, 2.7 and 3.1
According to sybase books with unix based systems you can use python 2.7 with the 2.6 module.
ref: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc20155.1570/html/OS_SDK_nf/OS_SDK_nf113.htm
Thanks,
Dawn Kim