Update tslib.pyx

Updating to simplify the weekofyear calculation and correct bug #6936