rm extra global
more python3 compatibility