added python3 support

added python 3 support :
- changed relative import
- decode bites to have string
- import of urlencode in a try
- .items() now is encapsulated by a list()