When I use this on my mac in terminal/bash works, but in jupyter notebook same code ask for input and then nothing. Both using Python 3