Support Python 3. fix #3