Allow XBlock to run under python 3
Move away from deprecated assertEquals function