GeoLocation field update and fetch

How can i update latitude and longitude to GeoLocation from python file or js file