Improve Python 2 compatibility

The python 2 compatibility has been improved by changing the syntax for
super calling.