fix TypeError in session.generate_key

In genrate_key function (session.py), TypeError occurrs if os.urandom function does not exist.
This is because _urandom function in session.py return float object by random.random, and generate_key function intend to call join function with the float object.

This issue does not occurred if os.urandom exists, because os.urandom returns byte string.