changed constructors to pyrex convention