First steps to make python3 compatible