small fixes and python3