python library with functions for calculating various details of financial instruments