Made PyLib work correctly