fixed use of reference in pytalloc