Added check for the size of the tuple returned by py[] wrapper