Update useful.py