Head Mounted Display Function In Python