work on python3 compatibility
work on python3 compatibility