import hashlib
import hmac
def do_hmac(secret):
    value = 'wahhwahh'
    hash = hmac.new(secret.encode('utf-8'), digestmod=hashlib.sha256)
    hash.update(value.encode('utf-8'))
    return hash.hexdigest()
full_secret = 'aiGhe2ahtoosu8ing4doo7Oogohs1shoob5shaVaefee5iec0taiNg8aekaitiexel0ahghaim3Oophooghot9Bobuef5yuig7ooxue7eong1rah7aizoothool3leelai1teetaith7shohzaoyeequohTaec5Liedoovai0phaiCoogae3Quaex0oozahwo6shu4Rie9Pah8meerahChab1Ai6iax7AhjohReehaecho6ohcu9eevichoo0choomoe0moilahjifeifaey4caeniech0ohl3vei9Ahk4quahquoolah0Xiw1ahth6ruK0AhthaiseiV4saquienuphe7Soh2lie1ieGush6waeXu8oht9rooreexeem9aeChohyah7phiexeighe2heis9shuotahc0oG3chaedi0vacheuquiep4pae5AeM6aegh7siegh7xeicohm2eexo1chi2Zaadee7NaenaiCoo7uToraey2ahph0xooLeu6ieT6Shiecu6neudaxoh6shoa5OuX2ioKohghiwuanohx0neeQuu3iemiereeto2Goo4Ku7aisae5kae0UuMiexae6aid6uucheigoaSaiyiek5nae2ieGaepeigh2uneegephievesh7aereed2pee9guapheengohgh6eephooxousi5Eegh3ji6eor1iapahc5saijuj4Hohki1eusodoxaiQuopheen6zeiyohlohQu0eaph8xootuBa3oekah2Rie8ab6Thu0Aiy4zah9ue5thaithi2au0rieY6teef3aitojool3ohT5tu6sou1jahNg3ceimee5bei3zeetichai8Asheif4mai9Chae6IuPhaiheelahFo5aegoPhoh2hoom9quahsie6ahj0deivaequo5oon1hieph1oogoor5ChahyeeH1deiwiequiejaebiePieneikeineir9Dae0lu8phei9iey6Eequae3aingae2ShuNuth8gouCh6AeYuu9vaiphai0vang0Ooqueerafe2weevuo4Eimo7ra1zai1ieD2eo0ixeiphahv6aizies4epatuuk1aet9saix4mie8vied5zuxoh2Ahbil5edit0ahkeixeiyu0zai8Quook1zeucohch2pi3ohje1owoh3quar3ahsahgahW2aiv9ouhuugaivei4gaithi7IechohvieMeing4aeviej4chahc0iefoRoor1quaeD0aidu4iereeleleeng6aequukaiPheejuuYaiChiGh3lahch7eeth3ohro2fuloopheel8tiph5aenaiL0oh1Eichaeva1ahLohchei8aidiequiepae8zae9radal2teazaisi5ooneingoh5oodeuj6eirohZaeMiitheep9taera0ahng4oo0ninoe8aenahbooghei7Ahdeizu9chei5moh8eikuese4uuQu6aiChenai2Pohthii9aengaiG8AiBah1ohyieNgaasheijeh1lo6eu1cahCh3eeXohr0ohpheinaijeimo4zei7xeid7kohg1baize7roo3ohae3mu4AhshooGhoizengie7hootubude1seequiejiechae3heiyie3eik4eigheibeiyeeQuoo9chahm2phaekohVaeneangei7aePhiDuz7tael1om1Ishaihe6ooPeiT5uKeiRee2theceMee9uGhaibaish4wu1veesh4iePu9thoocheeshae8eiraewuazoozighee6phahth4enooquae2AiNi9EiY6Taihahdienaighe9rieng1zee1jeephi6shaephishohr9shiephaiGhaeneuXie9aeSh8Paeth0maijoh3phoh9thie7esahn7quahpaidee7rohheidiegae5ohhor5aG7eej8Kun4aezieg6AeHieCaiPei8ei3gizier4Ue6ien5mio7ooh7boCae8Aghah1OhT4xuaYoopha3T'
print(do_hmac(full_secret))
4ad1fbb20840739a65b8bf358470db34657690e578d01f0aa4682aa3e7573990
butched_secret = full_secret[:-1] + 'x'
print(do_hmac(butched_secret))
721c1cd54d820d83ed7232e4c6173c2b109bc248bcb1a7c234072e3525f2a3ad
import ipynb.Test
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-27-859808fa2734> in <module>()
----> 1 import ipynb.Test

ImportError: No module named 'ipynb.Test'
!pip install ipynb
Requirement already satisfied: ipynb in /srv/paws/lib/python3.4/site-packages