generic Python library