ENH: Extends the number of Periods supported by allowing for Python defined Periods. Periods now hold reference to Offset rather than just freqstr (GH5148).