add storeFileFromOffset function

add python2 and python3 storeFileFromOffset fuction, it is similar to
retrieveFileFromOffset fuction.