API: Period should return NotImplemented as per the Python doc

if no comparison is implemented
Merge pull request #7379 from cpcloud/replace-no-match-7376

BUG: correct Period comparisons