python shapelet fitting