Make cosmetic adjustments, Fix random.py header, use message with assert_warns