making python connections