fixing pylibrary