Tweak order look for python as well as fix bug in error message