Backport python3.6 secrets to python2
Backport of Python 3.6's secrets module for Python 2.7, 3.4 and 3.5.