Upgrade dependencies
Python 3 compatibility