How to check the current platform and if java is installed in python?
===

For a script I am making, I need a cross-platform way to check:

1. If java is installed.
2. What platform the script is running on (eg windows/amd64 or linux/x86)

in python. How could I do both of these.