fixed short constructor for python