Don't use jython stdlib. Use java.io.File or java.nio.file.Path to construct your absolute file names. These will properly use the appropriate platform folder separator. Use those classes to parse the string from java.lang.System.getEnv("HOME") as your starting point.
Also, be aware that using backslashes as folder separators only works on Windows. In java and jython, forward slashes usually work in all OSes.