[Numpy-discussion] Avoiding messy code in Python