fixed some problems occurring in py2-versions of lingpy