Python 3.3 fixes.

Fixes for Python 3.3... as they use int and str it may not be fully compatible with 2.X.