java_timestamp = 1241959948938
seconds = java_timestamp / 1000
sub_seconds = java_timestamp % 1000.0 / 1000.0
date = datetime.datetime.fromtimestamp(seconds + sub_seconds)
Converting a java System.currentTimeMillis() to date in python