#!/usr/bin/python import mymod as mm import numpy as np aa=np.loadtxt("data.dat") print mm.sum(aa)