Generic python library