Make python scripts python3 compatible
Merge pull request #661 from bkabrda/master

Make python scripts python3 compatible