Revert "removing copy_to_leanpub script"

This reverts commit be4f2aa645051f4c39497239c2704cd144328396.