fix issues

- usage of random is wrong
- usage of URLSafeTimedSerializer is wrong
- update user model
- return UUID instead of int in gen_dist_uuid
utility script