BUFFER_SIZE = 500
buffer = create_unicode_buffer(BUFFER_SIZE)
get_long_path_name = windll.kernel32.GetLongPathNameW
get_long_path_name(str(short_path_name), buffer, BUFFER_SIZE)
How to get long file system path from python on Windows