* Removed exception for BytesIO objects, added test. * Small correction. * Corrected imports. * Apply suggestions from code review Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com> * Removed wrong comment. --------- Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>