ud.py patch

use startswith instead of == to make it less explicit. Needs to be improved.