added some fixes for ecos PyPi distribution