update Gemfile, add pyenv setup. and save patent.pdf is implemented.