To use Python (2.6,2.7 and 3.1 are supported) with Sybase ASE you need two things:
sybpydb
extension module for Python- Sybase Open Client SDK
Sybase has documentation for programmers wishing to connect to Sybase ASE with Python.
If you are using Python with Sybase SQLAnywhere you need the sqlanydb
module.
Here is the documentation for using Sybase SQLAnywhere with Python.