<filename>sdklib/util/files.py
import ntpath


def guess_filename_stream(path_to_file):
    f = open(path_to_file, 'rb')
    buf = f.read()
    f.close()
    filename = ntpath.basename(path_to_file)
    return filename, buf

<filename>sdklib/util/files.py
import ntpath


def guess_filename_stream(path_to_file):
    f = open(path_to_file, 'rb')
    buf = f.read()
    f.close()
    filename = ntpath.basename(path_to_file)
    return filename, buf
