from django.utils.dateparse import parse_datetime
string_date = "2017-04-28T00:00:49.640+03:00"
my_date1 = parse_datetime(string_date)
bc = d2['hi'][i]['here24']
pr = float(x1)*float(bc.replace(",", "."))
from locale import *
setlocale(LC_NUMERIC, '')
bc = d2['hi'][i]['here24']
pr = float(x1)*atof(bc)