Update python3 support. Fix #437