runtime: filled in set_alignment, and fixed dispatch_msg for python