Suppose we have had constructed an index for forecasting future interests of a floating bond, and as suggested by the official document, I used addFixing method to set a past fixing for the current coupon. What I confused was when I reset the addFixing value the program returned an error which says "At least one duplicated fixing provided: ..." . To solve this problem, I backed to check the source code and api doc, and found that there is a parameter called forceOverwrite which seems to be what I need, but when I changed the default value to True, the program told me that "addFixing() got an unexpected keyword argument 'forceOverwrite'". So, is it a bug in QuantLib-Python? If not, what should I do to change the value after having calling addFixing once. Thanks!
flat_forward = FlatForward(Date(8, 5, 2017), 0.04, Actual360(), Compounded, Quarterly)
term_structure = RelinkableYieldTermStructureHandle(flat_forward)
index = USDLibor(Period(3, Months), term_structure)
index.addFixing(Date(24, 3, 2017), 0.03) # how to change 0.03 to 0.05