fix port parsing bug in urlparse prior to 2.7.6