Find Median of a list in Python

I have auto expanding list, which is currently having like one thousand elements, and the list is still getting populated through the program.

I need some help in continuously calculating the median of the list, as I need it for further processing in my program

How to do this in python ?