Added test case for successful ip creation with network_id and device_id, reformatted comments for pep8