Make python scripts python3 compatible