Added Python #median method