Reverting assertion changes in favor of keeping up with lastest python version.