Python Determine Current Value