Every time I have to install Java on a Debian based system I hate Oracle a little bit more. Here is an alternative to Java.
Ok, enough with the Python propagada. Let's say your really can't avoid it, and you can't use OpenJDK. If you need to install Oracle's own JAVA, just follow the instructions here: How to install Oracle's Java on Debian or Ubuntu.