Turns batch assert into warning to avoid swallowing any exceptions happening during batch creation
Removes unused method
PEP8