added urllib compatibility
now uses urllib2 for python2, and urllib for python3

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
fixed Wave_write support
python2's implementation of the wave module is different
Error - AttributeError: Wave_write instance has no attribute '__exit__'

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
added shutil.which support for python2
uses equivalent backported code

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
modified setup to allow installation on python2

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
emulate 'with' context manager
to prevent resource leak on error

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
readded python3 specifiers
added python2.6 as well

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
Merge pull request #10 from arvindch/python2-support

Added python2 support