This I think was fixed in rebootpy, for reference see https://github.com/xMistt/rebootpy/commit/dceeec71ec708dfb07e90be6f1043251b306f4f9.
This I think was fixed in rebootpy, for reference see xMistt/rebootpy@dceeec7.