Updated python wrapper. Default is serial