Python Function Returns Two Variables With No Correlation