Pickle save and load function set to work with binaries (needed to properly work with windows)