Python is a general purpose programming language that is also used for scripting. But python can be used for everything that is done in java. Both python and java are interpreted during runtime. General purpose languages (including C and java) can be used for scripting.