We have looked at this from many angles and don't see anything that has changed. So I don't know why your script is working differently. If you don't specify any options, then it should default to Use Definition, which means the sharing set in the SD file being uploaded will be used. Perhaps the sharing specified for your SD file is different than exists on ArcGIS Online?
Thanks,
Mike