python class to wrap the c shared lib