Added interpolation.py
Modified partition_weighted.