Implement math.isfinite() and cmath.rect()