python 3 fix and allow user_entropy to be an int/long as well