Two Potentiometer Mouse

Hi, I want to attach two potentiometers to arduino and have one control the X axis on the screen and the other control the Y axis. I know that there is a python script I need but i am not too familiar with that. So could someone please help me? Thanks

I want to attach two potentiometers to arduino and have one control the X axis on the screen and the other control the Y axis

Don't forget the accelerometer to detect when it's upside-down and being shaken. ;D