Python Dynamically Add Attribute Using Javascript To Create