add missing functions pysal