Here i tried to fix python3 compatibility