line segment issue resolved. Was not pytmx's fault.